/* ESTILO DE DETALLES*/
body {
  background-color: #1d1d1d;
  font-family: Arial, sans-serif;
  color: #f4f4f4;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background-color: #2b2b2b;
  border-radius: 15px;
  box-shadow: 0 0 10px #000;
}
h1 {
  color: #d4af37;
  text-align: center;
}
.product-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.image-container {
  flex: 1 1 45%;
  text-align: center;
}
.image-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  border: 2px solid #d4af37;
}
.options-container {
  flex: 1 1 45%;
}
.color-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.color-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease;
}
.color-btn:hover {
  transform: scale(1.1);
}
.color-btn.selected {
  border-color: #d4af37;
}
    .sizes {
      margin: 20px 0;
    }
    .sizes button {
      background-color: #006400;
      color: white;
      border: none;
      margin-right: 10px;
      padding: 10px 15px;
      border-radius: 5px;
      cursor: pointer;
    }
    .sizes button:hover {
      background-color: #00a000;
    }
    .sizes button.selected {
      background-color: #00a000;
      box-shadow: 0 0 5px #00ff00;
    }
    .shipping-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 10px 15px;
      margin-top: 15px;
      align-items: center;
    }
    .shipping-table {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }
    .shipping-table .cell {
      flex: 1;
    }
    .shipping-table .price {
      text-align: right;
    }
    .shipping .label {
      flex: 0 0 auto;
      font-size: 16px;
      min-width: 100px;
    }
    .shipping-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 15px;
    }
    .zone-label {
      font-weight: bold;
      color: white;
      font-size: 16px;
    }
    .btn-price {
      background-color: #006400;
      color: white;
      border: none;
      border-radius: 6px;
      padding: 10px 20px;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s;
    }
    .btn-price:hover {
      background-color:  #00a000;
    }
    .shipping button.selected {
      background-color: #00a000;
      box-shadow: 0 0 5px #11ce07;
    }
    .description {
      margin-bottom: 20px;
      color: #ccc;
    }
    .add-to-cart {
      background-color: #d4af37;
      border: none;
      padding: 15px 30px;
      font-size: 16px;
      color: #000;
      cursor: pointer;
      border-radius: 10px;
    }
    .add-to-cart:hover {
      background-color: #bfa134;
    }
    .logo {
      width: 150px;
      top: 10px;
      left: 10px;
      transition: width 0.3s ease-in-out;
      height: 50px;
    }
    .footer-custom {
      background-color: #111;
      color: white;
      flex-wrap: wrap;
      gap: 10px;
    }
    .redes-sociales {
      display: flex;
      gap: 15px;
    }
    .social-icon {
      width: 24px; /* Cambia este valor para ajustar tamaño */
      height: auto;
      transition: transform 0.3s ease;
      cursor: pointer;
    }
    .social-icon:hover {
      transform: scale(1.1);
    }
    .Precio {
      text-decoration: underline;
      font-size: 20px;
      font-weight: bold;
      color: #d4af37;
    }
    .navbar-nav .nav-link {
      color: white;
      font-weight: bold;
      margin-left: 1rem;
      margin-right: 1rem;
      font-size: 18px;
      transition: color 0.3s ease;
    }
    .nav-link.active {
      color: gold !important;
    }
    .img-with-margin {
      width: 100%;
      max-width: 400px;
      border-radius: 10px;
      border: 2px solid #d4af37;
    }

    /* Estilos para el carrito */
    .cart-icon-container {
      position: relative;
      margin-left: 20px;
      cursor: pointer;
    }
    .cart-icon {
      font-size: 24px;
      color: white;
    }
    .cart-count {
      position: absolute;
      top: -8px;
      right: -8px;
      background-color: #d4af37;
      color: #000;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
    }
    .cart-dropdown {
      position: absolute;
      right: 0;
      top: 40px;
      width: 350px;
      background-color: #2b2b2b;
      border: 1px solid #d4af37;
      border-radius: 10px;
      padding: 15px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
      z-index: 1000;
      display: none;
    }
    .cart-dropdown.show {
      display: block;
    }
    .cart-item {
      display: flex;
      padding: 10px 0;
      border-bottom: 1px solid #444;
    }
    .cart-item-img {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border-radius: 5px;
      border: 1px solid #d4af37;
    }
    .cart-item-details {
      flex-grow: 1;
      padding: 0 10px;
    }
    .cart-item-title {
      font-weight: bold;
      color: #d4af37;
    }
    .cart-item-price,
    .cart-item-color,
    .cart-item-size,
    .cart-item-shipping {
      font-size: 14px;
      color: #ccc;
    }
    .cart-item-remove {
      color: #ff6b6b;
      cursor: pointer;
      font-size: 14px;
      align-self: center;
    }
    .cart-total {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
      padding-top: 10px;
      border-top: 1px solid #d4af37;
      font-weight: bold;
    }
    .cart-buttons {
      display: flex;
      justify-content: space-between;
      margin-top: 15px;
    }
    .cart-buttons button {
      padding: 8px 15px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    .checkout-btn {
      background-color: #d4af37;
      color: #000;
    }
    .clear-cart-btn {
      background-color: #444;
      color: #fff;
    }
    .empty-cart-message {
      text-align: center;
      padding: 20px 0;
      color: #888;
    }
    .quantity-selector {
      display: flex;
      align-items: center;
      margin: 10px 0;
    }
    .quantity-btn {
      background-color: #444;
      border: none;
      color: white;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .quantity-input {
      width: 40px;
      text-align: center;
      margin: 0 5px;
      background-color: #333;
      border: 1px solid #555;
      color: white;
      border-radius: 3px;
      padding: 2px;
    }
    .quantity-input::-webkit-inner-spin-button,
    .quantity-input::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .success-message {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: #4CAF50;
      color: white;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1001;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
      display: none;
    }
    /* Centrar el contenedor en pantalla */
    .quantity-selector {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .Precio p {
      text-decoration: line-through;
      color: #ccc;
    }

    .Precio-descuento p {
      color: #ffd700;
      font-weight: bold;
      font-size: 1.2em;
   }
   @media (max-width: 768px) {
  .product-section {
    flex-direction: column;
    align-items: center;
  }
  .image-container,
  .options-container {
    width: 100%;
    text-align: center;
  }
  .options-container {
    margin-top: 20px;
  }
}
@media (max-width: 768px) {
  /* Alinear a la izquierda todo el contenido de opciones y precios */
  .options-container {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .options-container h3,
  .options-container p,
  .Precio p,
  .Precio-descuento p {
    font-size: 0.9em; /* Letras más pequeñas */
    margin: 4px 0; /* Menos espacio vertical */
  }
  /* Ajustar botones de colores */
  .color-options {
    justify-content: flex-start !important;
    gap: 4px;
  }
  .color-btn {
    width: 24px;
    height: 24px;
  }
  /* Ajustar tamaños y márgenes de precio */
  .Precio-descuento p {
    font-size: 1.3em; /* Un poco más pequeño que en escritorio */
  }
  /* Reducir margen general de la sección */
  .options-container > div {
    margin-bottom: 6px;
  }
}
@media (max-width: 768px) {
  /* Alinear a la izquierda todo el contenido de opciones y precios */
  .options-container {
    text-align: left !important;
    align-items: flex-start !important;
  }
  /* Reducir tamaño de texto y márgenes */
  .options-container h3,
  .options-container p,
  .Precio p,
  .Precio-descuento p {
    font-size: 0.9em; /* Letras más pequeñas */
    margin: 4px 0; /* Menos espacio vertical */
  }
  /* Botones de colores más pequeños */
  .color-options {
    justify-content: flex-start !important;
    gap: 4px;
  }
  .color-btn {
    width: 24px;
    height: 24px;
  }
  /* Precio con descuento un poco más pequeño */
  .Precio-descuento p {
    font-size: 1.3em;
  }
  /* Reducir margen general */
  .options-container > div {
    margin-bottom: 6px;
  }
  /* Texto del título de envíos más pequeño */
  .shipping h2 {
    font-size: 1em;
  }
  /* Forzar negrita en títulos importantes */
  .options-container h3,
  .shipping h2 {
    font-weight: bold;
  }
}
